package com.lwlk.zdk.mapper.pw;

import com.lwlk.zdk.model.CommonUser;
import com.lwlk.zdk.model.pw.pwUser;
import com.lwlk.zdk.model.pw.pwUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface pwUserMapper {
    int countByExample(pwUserExample example);

    int deleteByExample(Integer id);

    int insert(pwUser record);

    int insertSelective(pwUser record);

    List<pwUser> selectByExample(pwUserExample example);

   
    int updateByExample(@Param("pwUser") pwUser pwUser);

    int updateUser(@Param("id") Integer id);

    int updatePassword(@Param("pwd") String pwd,@Param("userName")String userName);

    List<Map<String, Object>> selectDetails(@Param("id") Integer id);

    List<Map<String, Object>> selectFuzzy(@Param("userName") String userName, @Param("name") String name, @Param("mobile") String mobile, @Param("isForbidden") Integer isForbidden, @Param("type") Integer type,@Param("regionCode") Integer regionCode);

    List<Map<String, Object>> selectOne(@Param("userName") String userName);

    int updateByExampleSelective(Integer id, String userName, String password, Date createTime, String geteMial, Integer isForbidden, String name, Integer type, Integer platformId, Integer roleId, String mobile);



    int selectRole(Integer id);

    int update(pwUser pwUser);

    CommonUser selectUserAndRole(String accountNumber);
}